﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BrnMall.Baidu.Sdk
{
    public class Location
    {
        /// <summary>
        /// 
        /// </summary>
        public double lng { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double lat { get; set; }
    }

    public class AddressComponent
    {
        /// <summary>
        /// 中国
        /// </summary>
        public string country { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int country_code { get; set; }
        /// <summary>
        /// 北京市
        /// </summary>
        public string province { get; set; }
        /// <summary>
        /// 北京市
        /// </summary>
        public string city { get; set; }
        /// <summary>
        /// 海淀区
        /// </summary>
        public string district { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string adcode { get; set; }
        /// <summary>
        /// 中关村大街
        /// </summary>
        public string street { get; set; }
        /// <summary>
        /// 27号1101-08室
        /// </summary>
        public string street_number { get; set; }
        /// <summary>
        /// 附近
        /// </summary>
        public string direction { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string distance { get; set; }
    }

    public class Result
    {
        /// <summary>
        /// 
        /// </summary>
        public Location location { get; set; }
        /// <summary>
        /// 北京市海淀区中关村大街27号1101-08室
        /// </summary>
        public string formatted_address { get; set; }
        /// <summary>
        /// 中关村,人民大学,苏州街
        /// </summary>
        public string business { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public AddressComponent addressComponent { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        public int cityCode { get; set; }
    }

    public class GeoLocation
    {
        /// <summary>
        /// 
        /// </summary>
        public int status { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Result result { get; set; }
    }
}
